import request from "@/utils/request";

// 查询供应商商品列表
export function listGood(query) {
  return request({
    url: "/admin/good/list",
    method: "get",
    params: query,
  });
}

// 查询供应商商品详细
export function getGood(id) {
  return request({
    url: "/admin/good/" + id,
    method: "get",
  });
}

// 新增供应商商品
export function addGood(data) {
  return request({
    url: "/admin/good",
    method: "post",
    data: data,
  });
}

// 修改供应商商品
export function updateGood(data) {
  return request({
    url: "/admin/good",
    method: "put",
    data: data,
  });
}

// 删除供应商商品
export function delGood(id) {
  return request({
    url: "/admin/good/" + id,
    method: "delete",
  });
}

// 查询云仓库商品列表
export function listGoodVo(query) {
  return request({
    url: "/applet/good/listGoodVo",
    method: "get",
    params: query,
  });
}
